package sealte.hvpms.dao;

import java.util.List;

import sealte.hvpms.pojo.RuleLocks;

public interface RuleDAO {
	
	public void addEmail(int poll_id,String email);
	
	public void deleteAllEmailByPollId(int poll_id);
	
	public List<RuleLocks> getAllEmail(int poll_id);
	
	public boolean isEmailExist(int poll_id,String email);
	
	public void addIPAddr(int poll_id,String ipaddr);
	
	public void deleteAllIPAddrByPollId(int poll_id);
	
	public boolean isIPAddrExist(int poll_id,String ipaddr);
	
	public void addIDCard(int poll_id,String idcard);
	
	public void deleteAllIDCardByPollId(int poll_id);
	
	public List<RuleLocks> getAllIDCard(int poll_id);
	
	public boolean isIDCardExist(int poll_id,String idcard);
	
}
